

function addSensorbitCod(Blockly) {




    //无源蜂鸣器模块
  Blockly.Python.microbit_passive_buzzer = function(block) {
    var dropdown_song = this.getFieldValue('song');
    Blockly.Python.definitions_['import_microbit'] = 'from microbit import *';
    Blockly.Python.definitions_['import_music'] = 'import music';
    var code = "music.play("+ dropdown_song +")\n";
    return code;
  }

    return Blockly;
}

module.exports = addSensorbitCod;

